package com.qf.bookks.dao;


import com.qf.bookks.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserDao {
    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    User getUserByName(@Param("username") String username);

    void insertUser(User user);

    void insertUserList(@Param("userlist") List<User> userList);

    List<User> getAllUsers();

    User getUserById(@Param("id") Integer id);

    void updateUserById(User user);

    void deleteUserByIds(@Param("ids") String[] ids);

    List<User> getAllUsersByCondition(User userCondition);

    Integer getTotalCount();

    List<User> getUserByPage(@Param("start") int start,@Param("limit") Integer limit);
}
